package com.zrf.hibernate.pojo;

/**
 * Bank entity. @author MyEclipse Persistence Tools
 */

public class Bank implements java.io.Serializable {

	// Fields

	private Integer bid;
	private Seller seller;
	private Buyer buyer;
	private Double price;
	private Double agency;       //第三方中介

	// Constructors

	/** default constructor */
	public Bank() {
	}

	/** minimal constructor */
	public Bank(Integer bid) {
		this.bid = bid;
	}

	/** full constructor */
	public Bank(Integer bid, Seller seller, Buyer buyer, Double price,
			Double agency) {
		this.bid = bid;
		this.seller = seller;
		this.buyer = buyer;
		this.price = price;
		this.agency = agency;
	}

	// Property accessors

	public Integer getBid() {
		return this.bid;
	}

	public void setBid(Integer bid) {
		this.bid = bid;
	}

	public Seller getSeller() {
		return this.seller;
	}

	public void setSeller(Seller seller) {
		this.seller = seller;
	}

	public Buyer getBuyer() {
		return this.buyer;
	}

	public void setBuyer(Buyer buyer) {
		this.buyer = buyer;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getAgency() {
		return this.agency;
	}

	public void setAgency(Double agency) {
		this.agency = agency;
	}

}